import java.util.Scanner;

public class Main1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        String str = scanner.next();
        char[] arr = new char[str.length()];
        for (int i = str.length() - 1; i >= 0; i--) {
            char ch = str.charAt(i);
            arr[str.length() - i - 1] = ch;
        }
        for (char c : arr) {
            System.out.print(c);
        }
    }
}
